home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / DISK / TC_TEST / ENGLISH / TC64ENGL.TXT < prev    next >
Encoding:
Text File  |  1995-07-12  |  17.3 KB  |  339 lines

  1.                                              Ralf Biedermann
  2.                                              Ortfeld 3
  3.                                              27299 Langwedel
  4.                                              Germany
  5.                                              (49) 4235-8407
  6.                                         Maus:Ralf Biedermann @ HB
  7.                                         uucp:rb@rbsoft.bias.uni-bremen.de
  8.                                            
  9.                                           
  10. Short documentation of TCache
  11.  
  12. It  is  only allowed to distribute the version TC_TEST.LZH without changes.
  13. With  version 6.3 I released two versions of TCache. One is the testversion
  14. which  displays  a  long  text  every  time  you  boot  your system. In the
  15. registred  version  there  will  be  only  a text before you configured the
  16. parameters   of   TCache.  It  is  possible  that  there  will  be  further
  17. restrictions in the next version.
  18.  
  19. ---------------------------------------------------------------------------
  20. 0. General information !
  21.  
  22. TCache  is  share-/charityware  which means that if you like TCache and use
  23. it  regulary  you have to make a donation for an animalcharity (>=10 german
  24. marks  or  equivalent)  if you don't want to make a donation then TCache is
  25. shareware  (>=30  german  marks)  . If you send me a proof of your donation
  26. you'll  receive the latest version of TCache including commented sourcecode
  27. of  version  6.0  (comments  in  german  sorry).  If  you write from inside
  28. germany  include  a  stamped  self  addressed  envelope.  If you write from
  29. outside  germany include 2 IRC and a self addressed envelope. And of course
  30. in  both cases a 3.5'' double density disc. Because it is very difficult to
  31. send  money  to  a  foreign  country  I  am always open for other ideas for
  32. example  a  pack  of HD-disc or a CD or some candy but in these cases write
  33. me  a letter with your idea because when I eat even more candy I can't move
  34. anymore and there will be no version 6.4 of TCache ;-{)}
  35.  
  36. ---------------------------------------------------------------------------
  37. 1. What is TCache ?
  38.  
  39. TCache  is  a  very  fast  Harddisk-Cache  for the Atari range of computers
  40. (ST/STE/TT/Falcon).  A  cacheprogram  stores  sectors from disk/harddisk in
  41. ram   and  increases  the  speed  of  repeated  access  quite  dramaticly.  
  42. Speedimprovements up to a factor of 6 is nothing special.
  43.  
  44. ---------------------------------------------------------------------------
  45. 2. How to install TCache ?
  46.  
  47. You  must  copy TCache64.PRG into the autofolder of your bootdrive. Because
  48. TCache  is  deactivated  after the first installation you have to make some
  49. configurations   using   the   accessory   TC_ACC64.ACC.   You  can  rename
  50. TC_ACC64.ACC  to  TC64_ACC.PRG  and  start it  from  the desktop or you put
  51. TC_ACC64.ACC  into the rootdirectory of your bootdrive and perform a reset.
  52. Now  you have to make the apropriate changes to the configuration of TCache
  53. und  save  it  directly  in the programcode of TCache64.PRG. The meaning of
  54. every option will be explained in the next chapter.
  55.  
  56. ---------------------------------------------------------------------------
  57. 3. Options of TCache
  58.  
  59. With  the  programm  TC_ACC64.ACC  (.PRG!)  you  can change every option of
  60. TCache.  In  this chapter I will try to explain every possibility in simple
  61. words, because I can't explain it in detail in english.
  62.  
  63. -   If  you  click  on  the  top-button  you  will  receive  the  following
  64. informations:  1. Name of the author (me). 2. Bootdevice, the single letter
  65. in the top row. 3. over all memory requirement, in the button.
  66.  
  67. -  on the right are five radiobuttons. If you press one of the buttons the 
  68. information  in  the big area on the left side will get a new contents.  
  69.  
  70. -  'Options' will let you change the options for every drive. These options
  71. must  be  set for every drive. More about every single option later in this
  72. document.
  73.  
  74. -  'Parameter'  shows  some  global values of TCache, this means that these
  75. option are valid for all drives.
  76.  
  77. -   'Statistics'  gives  statistical  informations  about  the  success  of
  78. cacheing for every drive.
  79.  
  80. -  'Special'  hides  two  interesting features of TCache. One denies access
  81. for  choosen drives without a password and the second redirects access from
  82. one drive to another one.
  83.  
  84. - 'Utilities' hides some global options and more special features.
  85.  
  86. -  under  the  radiobuttons are 16 more radiobuttons labeled with 'A'..'P',
  87. with  these  buttons  you  can  select a drive for wich you want to see the
  88. local  options  ('Options')  or  the statistics ('Statistics'). If you have
  89. selected  either 'Parameter' or 'Special' or 'Utilities' these buttons will
  90. have no effekt.
  91.  
  92. In  the  last  row  of the accessory are three buttons. The 'Abbort'-button 
  93. means leave the accessory without any changes, 'OK' means apply all changes 
  94. and  leave  the accessoy and save means apply all changes, save the changes 
  95. in the program TCACHE64.PRG (name can be entred with a fileselectorbox) and 
  96. leave the accessory.
  97.  
  98. ---------------------------------------------------------------------------
  99. Now some explanations of 'Options'
  100.  
  101. 'Options' must be configured for every drive (click on 'A'..'P').
  102.  
  103. -  'drive  supported'  means that the drive selected (bottom right) will be
  104. cached  according  to  your  further  configuration.  If this button is not
  105. selected none of the other option for this drive will be active.
  106.  
  107. -  'write  changes  only'  means  that only sectors with a changed contents
  108. will be written to disk.
  109.  
  110. -  'delayed write' means that a writeoperation will be delayed for a while.
  111. This  is  a  bit dangerous because not every information will be immediatly
  112. on  disk,  if the computer crashes before the information is written it can
  113. result  in a loss of data. But this option is very usefull because a lot of
  114. datahandling  will  be speeded up quite a bit. The best example is deleting
  115. a  lot  of  files  with  'delayed  write'  it  will  have the speed of most
  116. ramdiscs. If you want to change this option for one or more drives you must 
  117. enter the correct password in a separate menu under 'Utilities'.
  118.  
  119. -  'writeprotected'  is  a  softwareprotection  of  a  writeaccess  for the
  120. selected  drive.  If  you want to change this option for one or more drives
  121. you must enter the correct password in a separate menu under 'Utilities'.
  122.  
  123. -  'calculate  checksum'  informs  TCache to calculate a checksum for every
  124. sector.  This  option  is only usefull while testing new programs or during
  125. programdevelopment because the speed will go down dramaticly.
  126.  
  127. -  'lock  Fat  & Root-Dir' means that sectors belonging to either FAT (file
  128. allocation  table) or the rootdirectory will be locked in cache, they can't
  129. be  overwritten.  If  you use only 32..256K for cache this option can speed
  130. up things a bit.
  131.  
  132. -  'Mediach()  when  HIT' means that for every cachehit (sector is found in
  133. cache)  the  program  checks if the media was changed in the meantime. This
  134. option  must  be activ for every medium which could be changed, for example
  135. floppydiscs. On harddiscs it's faster to leave this option unselected.
  136.  
  137. -  On the bottom is a row of radiobuttons labeled '0'..'9'. Theses buttons 
  138. are  used  to  configure  the  so  called readprefetch. Readprefetch means 
  139. reading  more  sectors  in  one call than GEMDOS wants to. If GEMDOS wants 
  140. only  one  sector  TCache  reads more sectors and stores them in cache, if 
  141. GEMDOS  wants  the  next sector it is already in ram and the speed will be 
  142. very  high. With these buttons you can select the number of sectors TCache 
  143. reads instead of only one sector. 
  144.  
  145. ---------------------------------------------------------------------------
  146. Now some explanations of 'Parameter'
  147.  
  148. -  'cachesize'  is the amount of ram you wants to use for TCache. TCache is
  149. very  fast even if you try >1MB so don't be afraid to test large amounts of
  150. memory.  This  size  is  only  used  for  storing sectordata, but for every
  151. sector  there  is  an overhead of around 40 bytes so the total memory usage
  152. will be higher than entered here.
  153.  
  154. -  'hashtable'  needs  a value between 8 and 16. This number is responsible
  155. for  the  searchspeed when looking for a new sector. If you choose a number
  156. n  then the memoryrequirement ist 4*2^n byte which means that 16 needs 256K
  157. of  memory.  The  best  price/performance  value  in  my opinion is between
  158. 10..12.
  159.  
  160. -  'max.  prefetch'  is the size of the prefetchbuffer. This buffer is used 
  161. for  sectorprefetch  and  for  cache  write back. A value between 10..99 is 
  162. usefull. 32 is a good choice.
  163.  
  164. - 'readblock' contains the largest blocksize for reading which will be held 
  165. in  cache. For example if you enter the value 32 every readaccess with less 
  166. than 33 sectors will be load into the cacheram if there is enough room.
  167.  
  168. -  'writeblock'  contains  the  largest blocksize for writing which will be
  169. held  in  cache.  For  example  if you enter the value 32 every writeaccess
  170. with  less  than  33  sectors  will  be  load into the cacheram if there is
  171. enough room.
  172.  
  173. -  'flushdelay' is the time which will be spent between the last discaccess
  174. and  cache write back (castoff or flush). This value is multiplied by 5 and
  175. the  result  is  a number of VBI (vertical blank interrupts) to wait before
  176. starting writing back. For example if you enter the number 20 and you use a 
  177. monochrome monitor with 70hz the delay will be 20*5/70==1.43sec.
  178.  
  179. -  'usage'  shows how full the cache is. If the number is inverted than the
  180. cache  is  full  of  locked data. The second number shows the percentage of
  181. Cache  used  by  locked data, for instance FAT-sectors if you have selected
  182. 'lock FAT & RootDir' for at least one drive.
  183.  
  184. - 'LED' let your floppy-led flash for every harddiscaccess.
  185.  
  186. - 'CLR' will flush and clear cachememory.
  187.  
  188. - 'LOCK' all sectors will be locked in cache (see 'lock Fat & Root-Dir')
  189.  
  190. - 'ACTIVE' enables or disables TCache completly.
  191.  
  192. ---------------------------------------------------------------------------
  193. Now some explanations of 'Statistics'
  194.  
  195. 'Statistics' can be seen for every drive (click on 'A'..'P').
  196.  
  197. - 'read access' number of readaccesses since start of TCache or last 'CLR'.
  198.  
  199. -  'readhits' readhits since start of TCache or last 'CLR'. Number of saved
  200. readaccesses.
  201.  
  202. -  'write  access'  number  of  writeaccesses since start of TCache or last 
  203. 'CLR'.
  204.  
  205. -  'writehits'  writehits  since  start  of TCache or last 'CLR'. Number of
  206. saved writeaccesses.
  207.  
  208. -  'checksum  errors'  number af checksumerrors since start of TCache. This
  209. value  is  only  of  interest  if 'calculate checksum' is active for one or
  210. more drives.
  211.  
  212. -  'access  odd  address'  shows  the  number  of  reads/writes to/from odd
  213. addresses.  This  can be of interest for program testing/developing because
  214. a normal ST/STE is a lot slower in accessing odd adresses.
  215.  
  216. - 'free memory' shows the amount of free memory on the selected drive.
  217.  
  218. - 'sectorsize' shows the size of one sector for the selected drive.
  219.  
  220. ---------------------------------------------------------------------------
  221. Now some explanations of 'Special'
  222.  
  223. -  The  top half of this area is used for a security option. 'no access for
  224. drive'  can  protect one or more drives against unwanted accesses from your
  225. boss/brother.  You must make your configuration AND enter the password. You
  226. won't  see  the  password  because it's hidden. On delivery the password is
  227. set   to   'TCRB'.   The   password   must   be   entered   in   the   menu
  228. Utilities-Password.  If you want to change this password you must enter the
  229. menu  Utilities-Password and enter the old password in the top line and the
  230. new password twice in the last two lines in this menu.
  231.  
  232. -  The  bottom  half  allows  you  to redirect the access from one drive to
  233. another  drive.  With the arrows you can select the drive you would like to
  234. be  redirected.  With  the radiobuttons beneath you can select the drive to
  235. which the accesses will be redirected.
  236.  
  237. ---------------------------------------------------------------------------
  238. Now some explanations of 'Utilities'
  239.  
  240. -  'ramdisc'  shows  another  menue  which allows you to install a ramdisk.
  241. Just  select  the drive and the amount of ram and press 'install'. If there
  242. is  already  a  ramdisk  installed  press  'remove' to remove this one. The
  243. ramdisc  is  very  fast  but  not  resetresident.  If  you have started the
  244. konfigurationprogram  (TC64_ACC)  as  an application and you are using MinT
  245. or Mag!X than it is impossible to install or remove the ramdisc.
  246.  
  247. -  'ACC-folder' shows another menue from which you can select a folder from
  248. which  the  ACC's  will  be loaded after the next reset. Of course you must
  249. save  the  configuration  for the desired result. To select the path simply
  250. click  on  the  pathname and a fileselectorbox will apear. The button 'load
  251. from folder' must be selected as well.
  252.  
  253. -  'steprate'  allows  you  to  switch  the  steprate for drive 'A' or 'B'.
  254. Simply  select the desired steprate for drive 'A' (top row) and 'B' (second
  255. row)  and select 'apply steprate'. If you save the TCache-configuration the
  256. steprates will be set on boot.
  257.  
  258. -  'virtual' shows a menue which lets you install logical drives, these are
  259. drives  which  aren't  physicly  attached  to  your computer. Together with
  260. 'Special'   'driveredirection'   you   can  create  almost  every  harddisc
  261. configuration.  This  option is especially usefull if you want to install a
  262. programm which is configured for drives which are absent on your computer.
  263.  
  264. -  'information' shows another menu with further global informations. These
  265. informations  are:  'read  absolut'  Rwabs()-readmode >= 8, 'write absolut'
  266. Rwbas()-writemode  >=  8,  'write-error'  number of problems during delayed
  267. write,  'single  sector'  number of singlesectoraccesses, 'multiple sector'
  268. number  of  multisectoraccesses,  'total  access' total number of accesses,
  269. 'Fat  & Rootaccess' number of accesses for the FAT or the rootrirectory and
  270. last but not least 'total saved' number of saved accesses.
  271.  
  272. -  Turbo  ;-{)}  disables the statistical functions and some safetyroutines
  273. for  every drive but 'A' and 'B'. This switch will speed up TCache a little
  274. but  the  option  should only be used if there are no changeble devices but
  275. drive  'A'  and 'B' in your system. This options should only be used if you 
  276. are shure that your media and programeviroment is perfectly ok.
  277.  
  278. -  'del  delayed'  is  a  switch  which is responsible for the behaviour of
  279. handling  delayed sectors. If this switch is active every delayed sector is
  280. deleted  from  a  linked  list. This switch is only usefull if cachesize is
  281. >1MB and 'delayed write' is activated. 
  282.  
  283. -  'LRU'  is  a switch for another way to handle the cache. LRU means 'last
  284. recently   used'.   This  option  has  this  name  because  when  activated
  285. (selected)  space  for  a new sector is taken from that sector which is not
  286. accessed  for the longest time, otherwise space is taken from a round-robin
  287. behaviour.  This  option  is  most  usefull  with  small cache (<=128K) and
  288. without 'lock Fat & RootDir'.
  289.  
  290. - 'bootsector' is a switch to allow write-access to the bootsector. If this 
  291. Button is enabled every attempt to write to the bootsector is answered with 
  292. an errormessage.
  293.  
  294. -  'Flush  all'  means that all delayed data ist writen in one go. If this 
  295. button isn't selected between blocks will be a little break. 
  296.  
  297. -  'sectortest'  means that TCache validates the sectornumbers. If someone 
  298. tries  to  access a sectornumber outside of the partition an error 'sector 
  299. not found' (-8) will be returned. 
  300.  
  301. -  'absolut' allows or denies accesses to a drive in an absolut manor which
  302. means access to a drive without using partitioninformation. If you want  to
  303. partition your HD absolut must be allowed.
  304.  
  305. - 'testing' shows if the ACC should test TCache every five seconds or not.
  306.  
  307. -  'PUN-INFO'  is  a flag which tells TCache to use the so called PUN-INFO 
  308. structure  to  get  informations  about  the  largest sectorsize. If is not 
  309. selected TCache makes a Getbpb() for every supported drive on startup.
  310.  
  311. -  'NOX !' is a very special thing. If you have a cookie called 'NOX!' and 
  312. the  value  of  this cookie is a pointer to a subroutine then on start and 
  313. end of a Rwabs()-call this routine will be called. 
  314.  
  315. -  'Drvbit-Check'  checks  the  systemvariable  '_drvbits' and denies every
  316. access  to  a drive which isn't in '_drvbits' (anymore). It's main interest
  317. is in program testing/developing.
  318.  
  319. -  'XBra-Check'  is  an  option  for TCache. TCache checks its programcode 
  320. everytime  you  leave  a  program.  TCache  uses  the XBRA-standard and if 
  321. anyone  changes  something  in  the programmcode TCache deinstalls itself. 
  322. With  this switch you can select whether TCache should allow manipulations 
  323. in his XBRA-structure or not. 
  324.  
  325. -  'etv_term'  means  that every time you leave a program the cache will be
  326. flushed.  Only  of  interest  if  'delayed  write' is activ for one or more
  327. drives.
  328.  
  329. -  'WriteReset' if selected TCache tries to flush the cache even if someone
  330. has pressed 'CTRL+ALT+DEL' (warmreset). Only of interest if 'delayed write'
  331. is active for one or more drives. 
  332.  
  333. -  'Gemdos'  if  selected  even  the  directories  of folders are locked in
  334. cache.   Attention  this option needs a lot of ram, even on small harddiscs
  335. I recommend >512K. 
  336.  
  337. -  'Clock' reads a special version of a realtimeclock on normal ST's during
  338. booting.
  339.